package practice;

/**
 * User: 86156
 * Date: 2023-04-12
 * Time: 10:51
 */
public class Test {
    public static void main(String[] args) {
        Animal a = new Dog();
        a.setAge(18);
        a.setColor('黑');

        Person p = new Person("老王",30);
        p.KeepPet(a,"骨头");
    }
}
